<template>
  <div class="box">
    <img src="../../assets/images/error_images/404.png" alt="" />
    <div class="btn">
      <h1>404，您访问的地址不存在或无权限</h1>
      <el-button size="large" @click="goHome">返回首页</el-button>
    </div>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from "vue-router";
let $router = useRouter();
const goHome = () => {
  $router.push("/home");
};
</script>

<style scoped lang="scss">
.box {
  width: 100vw;
  height: 100vh;
  background: yellowgreen;
  display: flex;
  justify-content: center;
  align-items: center;

  .btn {
    width: 50%;
    position: relative;
    left: -15%;

    img {
      width: 50%;
    }

    h1 {
      color: white;
      font-size: 40px;
      margin-bottom: 150px;
    }
  }
}
</style>
